package com.qf.hospital.system.service;

import com.github.pagehelper.PageInfo;
import com.qf.hospital.system.entity.Pharmacy;

public interface PharmacyService {


    /**
     * 查询全部药品信息
     * @return
     */
    PageInfo<Pharmacy> findByPharmacyName(String pharmacyName, Integer page, Integer limit);


    /**
     * 减少药品库存
     * @param num
     * @param name
     * @return
     */
    int decrementByPharmacyName(Integer num,String name);

    /**
     * 添加药品库存
     * @param durgName
     * @param durgNum
     */
    void incremntByPharmacyName(String durgName, Integer durgNum);
}
